/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdCompositeMaterial;

import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

/**
 * 【请填写功能名称】业务对象 isfd_composite_material
 *
 * @author Lion Li
 * @date 2024-08-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdCompositeMaterial.class, reverseConvertGenerate = false)
public class IsfdCompositeMaterialBo extends BaseEntity {

    /**
     * 对象存储主键
     */
    @NotNull(message = "对象存储主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 材料名称
     */
    @NotBlank(message = "材料名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String materialName;

    /**
     * 材料卡编号
     */
    @NotBlank(message = "材料卡编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String materialNumber;

    /**
     * E1(MPa)
     */
    @NotNull(message = "E1(MPa)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double e1;

    /**
     * E2(MPa)
     */
    @NotNull(message = "E2(MPa)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double e2;

    /**
     * nu12
     */
    @NotNull(message = "nu12不能为空", groups = { AddGroup.class, EditGroup.class })
    @Field( value = "nu12")
    private Double nu12;

    /**
     * g12(MPa)
     */
    @NotNull(message = "g12(MPa)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double g12;

    /**
     * G1Z(MPa)
     */
    @NotNull(message = "G1Z(MPa)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double g1z;

    /**
     * G2Z(MPa)
     */
    @NotNull(message = "G2Z(MPa)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double g2z;

    /**
     * RHO
     */
    @NotNull(message = "RHO不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double rho;

    /**
     * 纵向膨胀系数（0°）
     */
    @NotNull(message = "纵向膨胀系数（0°）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double longitudinalCteValue;

    /**
     * 横向膨胀系数（90°）
     */
    @NotNull(message = "横向膨胀系数（90°）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double transverseCteValue;

    /**
     * 元数据管理id
     */
    private String metadataManagementId;

    /**
     * 元数据管理ids，作为检索条件
     */
    private List<String> metadataManagementIds;
}
